#ifndef CBPROFILER_H
#define CBPROFILER_H
// the base class we 're inheriting
// 我们继承的基类
#include "cbplugin.h"

class cbConfigurationPanel;
class CBProfilerExecDlg;
class wxWindow;

/*
 * Save per pro config, or should I use exe path?
 * User can make a global variable, or per project? with the name of the file to profile or path (2 vars)
 * User can chose the target to profile
 *
 * 按项目配置保存,还是使用exe路径?
 * 用户可以创建一个全局变量或者每个项目?使用要分析的文件名或路径(2个变量)
 * 用户可以选择要分析的目标
 *
 */

class CBProfiler : public cbToolPlugin
{
    public:
        CBProfiler();
        ~CBProfiler();
        int GetConfigurationGroup() const { return cgCompiler; }
        cbConfigurationPanel* GetConfigurationPanel(wxWindow* parent);
        int Execute();
        // fires when the plugin is attached to the application
        // 当插件附加到应用程序时激发
        void OnAttach();
        // fires when the plugin is released from the application
        // 从应用程序中释放插件时激发
        void OnRelease(bool appShutDown);
    private:
        CBProfilerExecDlg* dlg;
};

#endif // CBPROFILER_H

